import Observer from './Observer';

export default function observe(value) {
    if(!(value instanceof Object)) return ;

    let ob = value.__ob__;

    if (!ob) {
        ob = new Observer(value);
    }

    return ob;
};